<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>All customer list</title>
</head>
<body style="text-align:center;margin:0 auto;">
<h1>All customer list</h1><br>
	<table style="text-align:center;margin:0 auto;">
		<thead>
			<tr>
				<td>name</td>
				<td>salary</td>
				<td>sex</td>
				<td>birth</td>
				<td>operate</td>
				<td>operate</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${customers}" var="c">
				<tr>
					<td><a href="fav?id=${c.id}">${c.name}</td>
					<td>${c.sal}</td>
					<td>${c.sex}</td>
					<td><fmt:formatDate value="${c.birth}" pattern="yyyy-MM-dd" /></td>
					<td><a href="del?id=${c.id}">delete</td>
					<td><a href="perInfo?id=${c.id}">update</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<a href="regist.jsp">regist</a>
	

</body>
</html>